package live

import (
	"vrcm/src/vrcm/common/models"
)

type RecordTask struct {
	models.Model

	TenantId   string `json:"tenant_id" gorm:"type:varchar(35);comment:租户"`
	LiveId     string `json:"live_id" gorm:"type:varchar(50);comment:直播id"`
	TaskId     string `json:"task_id" gorm:"type:varchar(50);comment:录播任务id"`
	TaskState  int64  `json:"task_state" gorm:"type:tinyint;comment:任务状态 1开启 2关系"`
	CreateTime int64  `json:"create_time" gorm:"type:int;comment:创建时间"`
	UpdateTime int64  `json:"update_time" gorm:"type:int;comment:修改时间"`
	IsDelete   int64  `json:"is_delete" gorm:"type:tinyint;comment:是否删除 1删除 2未删除"`
	models.ControlBy
}

func (RecordTask) TableName() string {
	return "record_task"
}

func (e *RecordTask) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *RecordTask) GetId() interface{} {
	return e.Id
}
